home *** CD-ROM | disk | FTP | other *** search
/ Maclife 157 / MACLIFE157-2001-09.ISO.7z / MACLIFE157-2001-09.ISO / Linux / MacOS Tools / Other / BootX 1.1.3 (for Old Mac OS) / Sources / src / EnterPPCSupervisor.h < prev    next >
Text File  |  2001-07-23  |  717b  |  38 lines

  1. #ifndef __ENTER_PPC_SUPERVISOR_H__
  2. #define __ENTER_PPC_SUPERVISOR_H__
  3.  
  4. #include <MacTypes.h>
  5. #include <MixedMode.h>
  6.  
  7. #if TARGET_CPU_68K
  8. typedef unsigned long float_reg_t[2];
  9. #elif TARGET_CPU_PPC
  10. typedef double float_reg_t;
  11. #else
  12. #error Unsupported CPU !
  13. #endif
  14.  
  15. typedef struct PPCRegisterList
  16. {
  17.     unsigned long    PC;
  18.     unsigned long    GPR[32];
  19.     float_reg_t        FPR[32];
  20.     
  21. } PPCRegisterList;
  22.  
  23. // 68k entry point for PPC Call
  24. typedef void (*EnterPriviledgedModeProc)(PPCRegisterList* regList);
  25.  
  26. // PPC procInfo
  27. enum
  28. {
  29.     uppEnterPriviledgedModeProcInfo = kCStackBased
  30.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(PPCRegisterList*)))
  31. };
  32.  
  33. // Normal entry point
  34. extern void EnterPPCSupervisor(PPCRegisterList* regList);
  35.  
  36.  
  37.  
  38. #endif